[POWERPC][XEN] Better explane the larx/stcx issue with interrupts
authorJimi Xenidis <jimix@watson.ibm.com>
Thu, 14 Sep 2006 14:17:23 +0000 (10:17 -0400)
committerJimi Xenidis <jimix@watson.ibm.com>
Thu, 14 Sep 2006 14:17:23 +0000 (10:17 -0400)
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
xen/arch/powerpc/powerpc64/exceptions.S

index fd46ba4fc154ce425a84928892eae72856c02155..78ab31fb29199491c68d2215b50acce27d646f1e 100644 (file)
@@ -118,7 +118,11 @@ LOAD_GPRS "(\from+1)", \to, \uregs
     mfspr r0, SPRN_HSPRG1
     std r0, UREGS_r13(r1)           /* save R13 from HSPRG1 */
 
-    /* Blow away any reservation according to 970 errata after saving CR */
+    /* Only _one_ larx is allowed at a time.  Any future use will be
+     * rejected until the earlier one (if any) completes.  Since we
+     * may have interrupted a larx in the Domain, or Xen we need to
+     * clear any larx that may currently exist.  We could probably
+     * skip which for hcalls */
     ldx r0, 0, r1
     stdcx. r0, 0, r1